import com.example.TestApplication;
import com.example.test.entity.Param;
import com.example.test.entity.TestDemo;
import com.example.test.mapper.DemoMapper;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@SpringBootTest(classes = TestApplication.class)
public class test01{

    @Resource
    private DemoMapper mapper;

    @Test
    public void test(){
        //查
        TestDemo d1 = mapper.selectById(1);
        System.out.println("111111");
        //遍历
        List<Param> list = d1.getDesc1();
        for(Param p1 : list){
            System.out.println("1111");
        }

    }



}